package com.dream.service;

import com.dream.pojo.Major;

import java.util.List;

public interface MajorService {
    List<Major> findMajorsByDepartId(String departId);

    /**
     * 查询条数
     * @param majorName
     * @return
     */
    long totalCount(String majorName);


    /**
     * 查询每页的数据
     * @param majorName
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<Major> list(String majorName, long pageIndex, long pageSize);


    int add(Major major);


    Major findById(String majorId);


    int update(Major major);


    int deleteById(String majorId);
}
